#ifndef FLORACOMMUNITYDEVICEMANGER_H
#define FLORACOMMUNITYDEVICEMANGER_H

#include <QObject>
#include "floracommunitydevice.h"
#include "floracommunitybus.h"
class FloraCommunityDeviceManger : public QObject
{
    Q_OBJECT
public:
    explicit FloraCommunityDeviceManger(QObject *parent = nullptr);

    int dev_count ;
    QMap<int,FloraCommunityDevice *> dev_map;
    void registerDecive(FloraCommunityDevice *dev, int addr =0);
    bool unregisterDecive(FloraCommunityDevice *dev);
    void registerBus(FloraCommunityBus *bus);
    void updateLoopCommand();
    FloraCommunityBus * m_bus;
signals:

public slots:
    void SendBrustCommand(int   manger_addr, int commandType,QByteArray da);
    virtual void reciveData(int,int, QByteArray);
    virtual void reciveBrustData(int,int, QByteArray);
private:

};

#endif // FLORACOMMUNITYDEVICEMANGER_H
